﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace SpaceMan.Physics
{
    class PHY_Hurt : PHY_Collider
    {
        public int Damage;
        Action didDamage;
        new public DamageAffinity damageAffinity;
        public void Initialize(Vector2 Position, int Width, int Height, bool Static, int Damage, DamageAffinity damageAffinity, Action didDamage)
        {
            this.didDamage = didDamage;   
            base.Initialize(Position, Width, Height, Static);
            this.damageAffinity = damageAffinity;
            this.Damage = Damage;
        }

        public void DidDamage()
        {
            didDamage();
            
        }
    }
}
